<?php
require_once 'Controlador/LogueoController.php';
$var = new LogueoController();
if (isset($_POST['entrar'])){
    $ini_access = $var->Realizar_Validacion($_POST['user'],$_POST['clave']);
    switch ($ini_access){
        case 1: header("Location: index.php");break;
        case 2: header("Location: index.php"); break;
    default:
        $var->muestraError();
    }
}
else $var->muestraErrorGrave();
?>